<?php

namespace App\Common\WX;


use App\Common\Log;
use App\Common\Sys;
use App\Common\User\WxUser;
use App\Common\WX\Api\OfficialAccount;
use App\Model\t_s_accsuper_config;
use App\Model\t_wx_user;
use XWX\Common\H;
use XWX\Common\XEntity;

class WxApp extends _Base
{
    /**
     * @return t_s_accsuper_config
     */
    public function funcGet_entity()
    {
        return parent::funcGet_entity();
    }


    function funcGetSign($wxuser_id, $timestamp)
    {
        $data = [
            'wxuser_id' => $wxuser_id,
            'timestamp' => $timestamp,
        ];

        return Sys::funcGetSign($data, $this->funcGet_entity()->aconfig_token);
    }
}